#include <iostream>
using namespace std;

int main() {
    int arr[4] = {1, 3, 5, 7};

    // 使用普通 for 循环遍历数组
    cout << "Using traditional for loop: ";
    for (int i = 0; i < 4; ++i) {
        cout << arr[i] << " ";
    }
    cout << endl;

    // 使用 for-each 循环遍历数组
    cout << "Using range-based for loop: ";
    for (auto item : arr) {
        cout << item << " ";
    }
    cout << endl;
	
	// 自定义 数据类型
	for(int item : arr){
		cout << item << " ";
	}

    return 0;
}
